package com.example.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel("上报问题")
@TableName("problem")
public class Problem {
    @ApiModelProperty("ID")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("项目ID")
    private Integer projectId;

    @ApiModelProperty("项目团队ID")
    private Integer nameId;

    @ApiModelProperty("项目名称")
    private String name;

    @ApiModelProperty("项目团队名称")
    private String teamName;

    @ApiModelProperty("项目负责人")
    @TableField(value = "director")
    private String director;

    @ApiModelProperty("上报问题情况说明")
    private String description;

    @ApiModelProperty("项目问题图片")
    private String  img;

    /** 创建上报时间 */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    /** 更新上报时间 */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    /** 乐观锁版本号 */
    @ApiModelProperty("乐观锁版本号")
    @Version
    @TableField(value = "version", fill = FieldFill.INSERT)
    private Integer version;
    /** 是否已经删除 */
    @ApiModelProperty(value = "是否删除；0：未删除；1：已删除")
    private Integer isDeleted;


}
